<?php

// mbilling/BillingBundle/Entity/usersBillsCurrencies.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class usersBillsCurrencies
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    
    /**
     * @ORM\Column(type="string", length=45)
     */
    protected $name;
    
    /**
     * @ORM\Column(type="string", length=45, nullable="TRUE")
     */
    protected $purse;
    
    /**
     * @ORM\Column(type="float")
     */
    protected $rate;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_webmoney;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }
    
    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }
    
    public function setPurse($purse)
    {
        $this->purse = $purse;
    }
    public function getPurse()
    {
        return $this->purse;
    }
    
    public function setRate($rate)
    {
        $this->rate = $rate;
    }
    public function getRate()
    {
        return $this->rate;
    }
    
    public function setIsWebmoney($is_webmoney)
    {
        $this->is_webmoney = $is_webmoney;
    }
    public function getIsWebmoney()
    {
        return $this->is_webmoney;
    }
    
    public function initDefaultEntity()
    {
        $this->setName('WMR');
        $this->setRate('1');
        $this->setIsWebmoney('1');
        return $this;
    }
}
?>
